const {createProxyMiddleware} = require('http-proxy-middleware');

module.exports = function (app) {
    app.use(createProxyMiddleware('/state', {
      target: 'https://inotify-server.yonyoucloud.com',
      secure: false,
      changeOrigin: true,
      pathRewrite: {
        "^/state": "/state"
      }
    }))
}